var getfpdjson = function (sql, dataSource) {
    var result = {};
    var params = { 'sql': sql, 'dataSource': dataSource };
    params = escape(encodeURIComponent(JSON.stringify(params)));
    $.ajax({
        'url': 'http://localhost:5000/getfpdjson',
        'method': 'POST',
        'data': { paramStr: params },
        'async': false,
        'dataType': "json",
        'success': function (data) {
            if (data.flag == 1) {
                result = data.data
            } else {
                alert(data.err);
            }
        }, error: function (XMLHttpRequest, textStatus, errorThrown) {
            alert('sql错误：' + XMLHttpRequest.responseJSON.message)
        }
    });
    return result;
}